"""
@author: chenzhenhua
@project: auto_jift
@file: exam_paper.py
@time: 2021/6/21 0021 15:54
@desc:
"""

from auto_jift.word.exam_paper import ToWord





# questions_path = 'data/试卷类模版/题库/数据挖掘.docx'
# tw = ToWord(questions_path)
# # all_question = tw.read_question(questions_path)
# print(tw.exam_question())





origin_paper_path = 'data/试卷类模版/重修/江西服装学院试卷模板(B).docx'
questions_path = 'data/试卷类模版/题库/数据挖掘.docx'

origin_answer_path = 'data/试卷类模版/重修/参考答案及评分标准/江西服装学院参考答案及评分标准模板.docx'

subject_name = '数据挖掘'
new_paper_path = 'data/试卷类模版/导出试卷/' + subject_name + '试卷.docx'
new_answer_path = 'data/试卷类模版/导出试卷/' + subject_name + '参考答案及评分标准.docx'
tw = ToWord(questions_path)

# tw.write_exam_paper(origin_paper_path, new_paper_path, subject_name)
# tw.write_exam_answer(origin_answer_path, new_answer_path, subject_name)
tw.write_all_info(origin_paper_path, origin_answer_path,new_paper_path,new_answer_path, subject_name)
